package AVL;

public class Test {
    public static void main(String[] args) {
        AVLTree avlTree = new AVLTree();//{4, 2, 6, 1, 3, 5, 15, 7, 16,14}
        int[] arr = {16, 3, 7, 11, 9, 26, 18, 14, 15};
        for (int i = 0; i < arr.length; i++) {
            avlTree.add(arr[i]);
        }
        System.out.println(avlTree.isBalance(avlTree.root));
        avlTree.print(avlTree.root);
    }
}



